<?php
	$specId = $_GET['specChosen'];

	include 'dbConnection.php';

	$result = mssql_query("EXECUTE GetPrzedmioty $specId");

	while($row = mssql_fetch_array($result)) {
		$nazwa = iconv("CP1250","utf-8",$row['nazwa']);
		echo '<span class="subj" id="subj_'.$row['id'].'" onclick="getWyklady('.$row['id'].')">'.$nazwa.'</span>';//<br />';
	}
	mssql_free_result($result);
	mssql_close($con);
?>
